<%@ Control Language="C#" %>
<%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="CSD" Namespace="CommunityServer.Discussions.Controls" Assembly="CommunityServer.Discussions" %>
<%@ Register TagPrefix="TWC" Namespace="Telligent.Web.UI" Assembly="Telligent.Web.UI" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Import Namespace="CommunityServer.Controls" %>

<script language="C#" runat="server">
bool CanSeeUserPoints()
{
	CSContext csContext = CSContext.Current;

	if (!csContext.SiteSettings.EnablePointSystem)
		return false;

	switch (csContext.SiteSettings.PointsUserDisplayLevel)
	{
		case DisplayLevel.None:
			return false;
		case DisplayLevel.Everyone:
			return true;
		case DisplayLevel.AdministratorsAndModerators:
			return (csContext.User.IsAdministrator || csContext.User.IsModerator);
		default:
			return false;
	}
}

protected override void OnLoad(EventArgs e) 
{
    base.OnLoad(e);

	editNameRegExVldt.ErrorMessage = ResourceManager.GetString("EditProfile_WebAddress_ErrorMessage");
	editNameRegExVldt2.ErrorMessage = ResourceManager.GetString("EditProfile_Blog_ErrorMessage");
	editNameRegExVldt3.ErrorMessage = ResourceManager.GetString("EditProfile_Gallery_ErrorMessage");
	emailValidator.ErrorMessage = ResourceManager.GetString("EditProfile_EmailFormat_ErrorMessage");
	emailRegExValidator.ErrorMessage = ResourceManager.GetString("EditProfile_EmailRequired_ErrorMessage");
	ValidationSummary.HeaderText = ResourceManager.GetString("EditProfile_ErrorMessages_Header");
}

</script>

<div class="CommonContentArea">
	<CS:AdPart runat = "Server" contentname="StandardTop" ID="Adpart1">
	    <CS:Ads Zone="StandardTop" runat="server" id="Ads1" />
	</CS:AdPart>
	<div class="CommonContent">
	
		<cs:StatusMessage runat="server" id="formStatus" />
		<asp:ValidationSummary Runat="server" ID="ValidationSummary" DisplayMode="BulletList" Enabled="True" EnableClientScript="True" />
		
		<table cellspacing="0" cellpadding="0" border="0" width="100%">
			<tr valign="middle">
				<td style="padding-top: 8px; padding-bottom: 8px;">
					<CS:UserAvatar OverrideUser="true" Visible="True" id="Avatar" runat="server" PadImage="False" />
				</td>
				<td width="100%">
					<h2 class="CommonProfileTitle"><asp:Literal id="Username" runat="server" /></h2>
				</td>
			</tr>
		</table>
		
		<TWC:TabbedPanes id="ProfileTabs" runat="server"
			PanesCssClass="CommonPane"
			TabSetCssClass="CommonPaneTabSet"
			TabCssClasses="CommonPaneTab,CommonPaneTab1,CommonPaneTab2"
			TabSelectedCssClasses="CommonPaneTabSelected,CommonPaneTabSelected1,CommonPaneTabSelected2"
			TabHoverCssClasses="CommonPaneTabHover,CommonPaneTabHover1,CommonPaneTabHover2"
			>
		<TWC:TabbedPane runat="server">
			<Tab><CS:ResourceControl runat="server" ResourceName="EditProfile_Tab_SignatureBio" /></Tab>
			<Content>
				<p>
				<asp:Panel id="EnableSignature" Runat="server" cssclass="CommonGroupedContentArea">
				<h3 class="CommonSubTitle"><CS:ResourceControl runat="server" ResourceName="EditProfile_AboutSignature" id="Resourcecontrol34"/></h3>
				<div class="CommonFormField">
					<asp:TextBox id="Signature" TextMode="MultiLine" columns="50" rows="5" runat="server" />
					<br /><asp:CustomValidator ControlToValidate="Signature" id="SignatureMaxLengthValidator" EnableClientScript=false runat="server"/>
				</div>
				</asp:Panel>
				
				<h3 class="CommonSubTitle">Bio</h3>
				<div class="CommonFormField">
					<asp:TextBox id="bio" TextMode="MultiLine" columns="50" rows="5" runat="server" />
				</div>

				</p>
			</Content>
		</TWC:TabbedPane>
		<TWC:TabbedPane runat="server">
			<Tab><CS:ResourceControl runat="server" ResourceName="EditProfile_Tab_About" /></Tab>
			<Content>
				<p>
				<h3 class="CommonSubTitle"><CS:ResourceControl runat="server" ResourceName="EditProfile_AboutTitle" id="Resourcecontrol1"/></h3>
				<table cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_CommonName" id="ResourceControl2" NAME="ResourceControl2"/>
						</td>
						<td class="CommonFormField">
							<asp:Literal id="Literal1" runat="server" /><asp:Textbox id="CommonName" Size="30" MaxLength="50" runat="server" /> 
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_AboutLocation" id="Resourcecontrol8"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="Location" Size="30" runat="server" MaxLength="50"/>
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_AboutOccupation" id="Resourcecontrol9"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="Occupation" Size="30" runat="server" MaxLength="50" />
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_AboutInterests" id="Resourcecontrol10"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="Interests" Size="30" runat="server" MaxLength="50" />
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_Birthday" id="Resourcecontrol68"/>
						</td>
						<td class="CommonFormField">
							<CS:DatePickerToggle id="Birthday" runat="Server" />
						</td>
					</tr>
					<tr id="EnableGender" runat="server" visible="false">
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_AboutGender" id="Resourcecontrol11"/>
						</td>
						<td class="CommonFormField">
							<CS:GenderRadioButtonList Cssclass="txt1" id="Gender" RepeatColumns="3" runat="server" />
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_AboutWebAddress" id="Resourcecontrol12"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="WebAddress" Size="30" runat="server" MaxLength="255" />
							<asp:RegularExpressionValidator id="editNameRegExVldt" 
								ControlToValidate="WebAddress" 
								ValidationExpression="^(http|https|ftp)\://([a-zA-Z0-9\.\-]+(\:[a-zA-Z0-9\.&%\$\-]+)*@)?((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+)(\:[0-9]+)?((/|/[^/][a-zA-Z0-9\.\,\?\'\\/\+&%\$#\=~_\-@]*))*$"
								runat="server"><CS:ResourceControl runat="server" ResourceName="EditProfile_InvalidUrl" id="Resourcecontrol13"/></asp:RegularExpressionValidator>
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_AboutWebLog" id="Resourcecontrol14"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="WebLog" Size="30" runat="server" MaxLength="255" />
							<asp:RegularExpressionValidator id="editNameRegExVldt2" 
								ControlToValidate="WebLog" 
								ValidationExpression="^(http|https|ftp)\://([a-zA-Z0-9\.\-]+(\:[a-zA-Z0-9\.&%\$\-]+)*@)?((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+)(\:[0-9]+)?((/|/[^/][a-zA-Z0-9\.\,\?\'\\/\+&%\$#\=~_\-@]*))*$"
								runat="server"><CS:ResourceControl runat="server" ResourceName="EditProfile_InvalidUrl" id="Resourcecontrol15"/></asp:RegularExpressionValidator>
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_AboutWebGallery" id="Resourcecontrol52"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="WebGallery" Size="30" runat="server" MaxLength="255" />
							<asp:RegularExpressionValidator id="editNameRegExVldt3" 
								ControlToValidate="WebGallery" 
								ValidationExpression="^(http|https|ftp)\://([a-zA-Z0-9\.\-]+(\:[a-zA-Z0-9\.&%\$\-]+)*@)?((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+)(\:[0-9]+)?((/|/[^/][a-zA-Z0-9\.\,\?\'\\/\+&%\$#\=~_\-@]*))*$"
								runat="server"><CS:ResourceControl runat="server" ResourceName="EditProfile_InvalidUrl" id="Resourcecontrol53"/></asp:RegularExpressionValidator>
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_OptionsLanguage" id="Resourcecontrol16"/>
						</td>
						<td class="CommonFormField">
							<CS:LanguageDropDownList id="Language" runat="server" />
						</td>
					</tr>
				</table>
				</p>
			</Content>
			</TWC:TabbedPane>
			<TWC:TabbedPane runat="server">
			<Tab><CS:ResourceControl runat="server" ResourceName="EditProfile_Tab_Avatar" /></Tab>
			<Content>
				<p>
				<h3 class="CommonSubTitle"><CS:ResourceControl runat="server" ResourceName="EditProfile_AvatarTitle" id="Resourcecontrol30"/></h3>
				<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_AvatarEnable" id="Resourcecontrol31"/>
						</td>
						<td class="CommonFormField">
							<CS:YesNoRadioButtonList Cssclass="txt1" id="EnableAvatar" runat="server" RepeatColumns="2" /> <asp:Label id="EnableAvatarMsg" runat="server" />
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_UploadAvatar" id="Resourcecontrol32"/>
						</td>
						<td class="CommonFormField">
							<input type="file" runat="server" id="AvatarUpload" NAME="AvatarUpload"/> <asp:button id="SubmitAvatar" runat="server" />
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_AvatarUrl" id="AvatarUrlLabel"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="AvatarUrl" Width="30" runat="server" MaxLength="256"/> <asp:Label id="AvatarMsg" runat="server" />
						</td>
					</tr>
				</table>
				</p>
			</Content>
			</TWC:TabbedPane>
			<TWC:TabbedPane runat="server">
			<Tab><CS:ResourceControl runat="server" ResourceName="EditProfile_Tab_Email" /></Tab>
			<Content>
				<p>
				<h3 class="CommonSubTitle"><CS:ResourceControl runat="server" ResourceName="EditProfile_EmailTitle" id="EmailTitleLabel"/></h3>
				<table cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_OptionsReceiveEmails" id="ReceiveEmailsLabel"/>
						</td>
						<td class="CommonFormField" nowrap="true">
							<CS:YesNoRadioButtonList Cssclass="txt1" id="ReceiveEmails" runat="server" RepeatColumns="2" />
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_OptionsHtmlEmail" id="EnableHtmlEmailLabel"/>
						</td>
						<td class="CommonFormField" nowrap="true">
							<CS:YesNoRadioButtonList Cssclass="txt1" id="EnableHtmlEmail" runat="server" RepeatColumns="2" />
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_OptionsEmailTracking" id="EnableEmailTrackingLabel"/>
						</td>
						<td class="CommonFormField" nowrap="true">
							<CS:YesNoRadioButtonList Cssclass="txt1" id="EnableEmailTracking" runat="server" RepeatColumns="2" />
						</td>
					</tr>
				</table>
				</p>

				<div class="CommonGroupedContentArea">
				<h3 class="CommonSubTitle"><CS:ResourceControl runat="server" ResourceName="EditProfile_ContactTitle" id="Resourcecontrol37"/></h3>
				<table cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_ContactPublicEmail" id="Resourcecontrol38"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="PublicEmail" Size="30" runat="server" MaxLength="50"/>
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_ContactMsn" id="Resourcecontrol39"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="MsnIM" Size="30" runat="server" MaxLength="50"/>
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_ContactAol" id="Resourcecontrol40"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="AolIM" Size="30" runat="server" MaxLength="50"/>
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_ContactYahoo" id="Resourcecontrol41"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="YahooIM" Size="30" runat="server" MaxLength="50"/>
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_ContactIcq" id="Resourcecontrol42"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="ICQ" Size="30" runat="server" MaxLength="50"/>
						</td>
					</tr>
				</table>
				</div>

				<div class="CommonGroupedContentArea">
				<h3 class="CommonSubTitle"><CS:ResourceControl runat="server" ResourceName="EditProfile_PrivateTitle" id="Resourcecontrol4"/></h3>
				<table cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td class="CommonFormFieldName" nowrap="true">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_ContactPrivateEmail" id="Resourcecontrol35" NAME="ResourceControl4"/>
						</td>
						<td class="CommonFormField">
							<asp:TextBox id="PrivateEmail" Size="30" runat="server" MaxLength="50"/>
							<asp:RequiredFieldValidator id="emailValidator" runat="server" ControlToValidate="PrivateEmail" Cssclass="validationWarning">*</asp:RequiredFieldValidator>
							<asp:RegularExpressionValidator id="emailRegExValidator" runat="server" ControlToValidate="PrivateEmail" Cssclass="validationWarning" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
						</td>
					</tr>
					<tr id="EnablePasswordQuestionAnswer" runat="server" visible="false">
						<td class="CommonFormFieldName" >
							<CS:ResourceControl runat="server" ResourceName="EditProfile_PasswordAnswer" id="Resourcecontrol36"/>
						</td>
						<td class="CommonFormField">
							<a runat="server" id="ChangePasswordAnswer" />
						</td>
					</tr>
				</table>
				</div>
			</Content>
			</TWC:TabbedPane>
			<TWC:TabbedPane runat="server">
			<Tab><CS:ResourceControl runat="server" ResourceName="EditProfile_Tab_Options" /></Tab>
			<Content>
				<p>
				<h3 class="CommonSubTitle"><CS:ResourceControl runat="server" ResourceName="EditProfile_OptionsTitle" id="Resourcecontrol7"/></h3>

				<table cellspacing="0" border="0" cellpadding="0">
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_OptionsSortOrder" id="Resourcecontrol21"/>
						</td>
						<td class="CommonFormField">
							<CS:SortOrderDropDownList id="SortOrder" runat="server" />
						</td>
					</tr>          
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_Theme" id="ThemeLabel"/>
						</td>
						<td class="CommonFormField">
							<CS:ThemeDropDownList id="Theme" runat="server" />
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_FontSize" id="Resourcecontrol23"/>
						</td>
						<td class="CommonFormField">
							<cs:FontSizeDropDownList id="FontSize" runat="server" />
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_Editor" id="Resourcecontrol25"/>
						</td>
						<td class="CommonFormField">
							<asp:DropDownList id="EditorList" runat="server" />
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_PostViewType" id="Resourcecontrol20"/>
						</td>
						<td class="CommonFormField">
							<asp:DropDownList id="PostViewType" runat="server" />
						</td>
					</tr>					
					<tr runat="server" Visible = "<%# CSContext.Current.SiteSettings.EnableInk %>" ID="Tr1">
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_Ink" id="Resourcecontrol51"/>
						</td>
						<td class="CommonFormField">
							<CS:YesNoRadioButtonList Cssclass="txt1" id="enableInk" runat="server" RepeatColumns="2" />
						</td>
					</tr>								
					
					
					<tr runat="server" Visible = "<%# CSContext.Current.SiteSettings.EnableDisplayNames %>">
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_DisplayName" id="Resourcecontrol17"/>
						</td>
						<td class="CommonFormField">
							<CS:YesNoRadioButtonList Cssclass="txt1" id="enableDisplayNames" runat="server" RepeatColumns="2" />
						</td>
					</tr>									
												
					<tr>        
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_DisplayInMemberList" id="Resourcecontrol26"/>
						</td>
						<td class="CommonFormField" nowrap="true">
							<CS:YesNoRadioButtonList Cssclass="txt1" id="DisplayInMemberList" runat="server" RepeatColumns="2" />
						</td>
					</tr>
					<tr id="EnablePostPreviewPopupRow" runat="server">
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="Admin_SiteSettings_EnablePostPreviewPopup" id="EnablePostPreviewPopupLabel"/>
						</td>
						<td class="CommonFormField" nowrap="true">
							<CS:YesNoRadioButtonList Cssclass="txt1" id="EnablePostPreviewPopup" runat="server" RepeatColumns="2" />
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="Admin_SiteSettings_EnableCollapsingPanels" id="Resourcecontrol28"/>
						</td>
						<td class="CommonFormField" nowrap="true">
							<CS:YesNoRadioButtonList Cssclass="txt1" id="EnableCollapsingPanels" runat="server" RepeatColumns="2" />
						</td>
					</tr>

					<tr id="EmoticonRow" runat="Server">
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="Admin_SiteSettings_EnableEmoticons" id="Resourcecontrol29"/>
						</td>
						<td class="CommonFormField" nowrap="true">
							<CS:YesNoRadioButtonList Cssclass="txt1" id="EnableEmoticons" runat="server" RepeatColumns="2" />
						</td>
					</tr>
					
					<tr id="Tr2" runat="Server">
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_EnableUserAvtars" id="Resourcecontrol18"/>
						</td>
						<td class="CommonFormField" nowrap="true">
							<CS:YesNoRadioButtonList Cssclass="txt1" id="enableUserAvtars" runat="server" RepeatColumns="2" />
						</td>
					</tr>
					
					<tr id="Tr3" runat="Server">
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_EnableUserSignatures" id="Resourcecontrol19"/>
						</td>
						<td class="CommonFormField" nowrap="true">
							<CS:YesNoRadioButtonList Cssclass="txt1" id="enableUserSignatures" runat="server" RepeatColumns="2" />
						</td>
					</tr>																

					<tr>
						<td class="CommonFormFieldName">
							<cs:formlabel id="Formlabel1" runat="server" ResourceName="EditProfile_ShowHelpTips" controltolabel="ynEnableHelp"></cs:formlabel>
						</td>
						<td class="CommonFormField">
							<cs:yesnoradiobuttonlist id="ynEnableHelp" runat="server" repeatcolumns="2" cssclass="txt1"></cs:yesnoradiobuttonlist>
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<cs:formlabel id="Formlabel2" runat="server" ResourceName="EditProfile_CPGridItemsPerPage" controltolabel="PageSize"></cs:formlabel>
						</td>
						<td class="CommonFormField">
							<asp:dropdownlist id="PageSize" runat="Server">
								<asp:listitem value="5">5</asp:listitem>
								<asp:listitem value="10">10</asp:listitem>
								<asp:listitem value="20">20</asp:listitem>
								<asp:listitem value="30">30</asp:listitem>
								<asp:listitem value="40">40</asp:listitem>
								<asp:listitem value="50">50</asp:listitem>
							</asp:dropdownlist>
						</td>
					</tr>
					<tr runat="server" id="ControlPanelManageViewArea">
						<td class="CommonFormFieldName">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_ControlPanelManageView" id="Resourcecontrol22"/>
						</td>
						<td class="CommonFormField">
							<asp:DropDownList id="ControlPanelManageView" runat="server" />
						</td>
					</tr>		

				<asp:PlaceHolder Runat="server" ID="ContactCheckboxes">
					<tr>
						<td class="CommonFormFieldName">
							<cs:formlabel id="Formlabel3" runat="server" ResourceName="EditProfile_AllowSiteToContact" controltolabel="ynEnableHelp"></cs:formlabel>
						</td>
						<td class="CommonFormField">
							<cs:yesnoradiobuttonlist id="AllowSiteToContact" runat="server" repeatcolumns="2" cssclass="txt1"></cs:yesnoradiobuttonlist>
						</td>
					</tr>
					<tr>
						<td class="CommonFormFieldName">
							<cs:formlabel id="Formlabel4" runat="server" ResourceName="EditProfile_AllowSitePartnersToContact" controltolabel="ynEnableHelp"></cs:formlabel>
						</td>
						<td class="CommonFormField">
							<cs:yesnoradiobuttonlist id="AllowSitePartnersToContact" runat="server" repeatcolumns="2" cssclass="txt1"></cs:yesnoradiobuttonlist>
						</td>
					</tr>
				</asp:PlaceHolder>

				</table>
				</p>
				
				<asp:PlaceHolder Runat="server" ID="SectionLocalizationArea">
					<p>
						<h3 class="CommonSubTitle">
							<CS:ResourceControl runat="server" ResourceName="EditProfile_ContentLanguagesToExclude" id="Resourcecontrol27"/>
						</h3>
						<div class="CommonFormField">
							<asp:CheckBoxList RepeatColumns="3" RepeatDirection="Horizontal" id="FilterLanguageList" runat="server" />
						</div>
					</p>		
				</asp:PlaceHolder>
				
				<p>
				<h3 class="CommonSubTitle"><CS:ResourceControl runat="server" ResourceName="EditProfile_AboutTimeZone" id="Resourceliteral1"/></h3>
				<CS:TimezoneDropDownList id="Timezone" runat="server" />
				</p>

				<p>
				<h3 class="CommonSubTitle"><CS:ResourceControl runat="server" ResourceName="EditProfile_OptionsDateFormat" id="Resourcecontrol24"/></h3>
				<CS:DateFormatDropDownList id="DateFormat" runat="server" />
				</p>

			</Content>
			</TWC:TabbedPane>
			<TWC:TabbedPane runat="server">
			<Tab><CS:ResourceControl runat="server" ResourceName="EditProfile_Tab_PasswordStatistics" /></Tab>
			<Content>
				<p>
				<h3 class="CommonSubTitle"><CS:ResourceControl runat="server" ResourceName="EditProfile_Password" id="Resourcecontrol43"/></h3>
					<ul class="CommonFloatList">
						<li>
							<a runat="server" id="ChangePassword" class="CommonTextButton" />
						</li>
						<li>
							<CS:ResourceControl runat="server" ResourceName="EditProfile_LastLogin" id="ResourceControl3" NAME="ResourceControl3"/>
							<asp:Literal id="LastLogin" runat="server" />
						</li>
						<li>
							<CS:ResourceControl runat="server" ResourceName="EditProfile_DateCreated" id="ResourceControl5" NAME="ResourceControl5"/>
							<asp:Literal id="DateCreated" runat="server" />
						</li>
						<li>
							<CS:ResourceControl runat="server" ResourceName="EditProfile_LastActivity" id="ResourceControl6" NAME="ResourceControl6"/>
							<asp:Literal id="LastActivity" runat="server" />
						</li>
					</ul>
				</p>
			</Content>
			</TWC:TabbedPane>
			<TWC:TabbedPane runat="server">
			<Tab><CS:ResourceControl runat="server" ResourceName="EditProfile_Tab_Favorites" /></Tab>
			<Content>
				<p>
					<h3 class="CommonSubTitle"><CS:ResourceControl runat="server" ResourceName="EditProfile_Favorites_Title" ID="Resourcecontrol50" NAME="Resourcecontrol44"/></h3>
					<div class="CommonListArea">
						<asp:checkbox id="ShareFavoriteUsers" runat="server" />
					<h4 class="CommonListTitle"><CS:ResourceControl runat="server" ResourceName="EditProfile_FavoriteUsers_Title" ID="Resourcecontrol44" NAME="Resourcecontrol44"/></h4>
					<CS:RepeaterPlusNone ID="FavoriteUsers" Runat="server">
						<HeaderTemplate>
							<table cellpadding="0" cellspacing="0" border="0" width="100%">
								<thead>
								<tr>
									<th class="CommonListHeaderLeftMost">&nbsp;</th>
									<th class="CommonListHeader"><CS:ResourceControl runat="server" ResourceName="EditProfile_FavoriteUsers_Username" ID="Resourcecontrol45" NAME="Resourcecontrol45"/></th>
									<th class="CommonListHeader"><CS:ResourceControl runat="server" ResourceName="EditProfile_FavoriteUsers_TotalPosts" ID="Resourcecontrol46" NAME="Resourcecontrol46"/></th>
									<th class="CommonListHeader"><CS:ResourceControl runat="server" ResourceName="EditProfile_FavoriteUsers_PostRank" ID="Resourcecontrol47" NAME="Resourcecontrol47"/></th>
									<th class="CommonListHeader" runat="server" visible="<%# CanSeeUserPoints() %>"><CS:ResourceControl runat="server" ResourceName="EditProfile_FavoriteUsers_Points" ID="Resourcecontrol48" NAME="Resourcecontrol48"/></th>
									<th class="CommonListHeader"><cs:resourcelabel runat="server" resourcename="EditProfile_FavoriteUsers_Actions" id="Resourcelabel1"/></th>
								</tr>
								</thead>
								<tbody>
						</HeaderTemplate>
						<ItemTemplate>
								<tr>
									<td class="CommonListCellLeftMost"><asp:CheckBox id="Select" runat="server" /><input type="hidden" runat="server" id="ItemID" value='<%# DataBinder.Eval(Container.DataItem, "UserID") %>' name="ItemID"/>&nbsp;</td>
									<td class="CommonListCell"><%# Formatter.FormatUsername((int)DataBinder.Eval(Container.DataItem, "UserID"), DataBinder.Eval(Container.DataItem, "Username").ToString(), false) %>&nbsp;</td>
									<td class="CommonListCell"><%# DataBinder.Eval(Container.DataItem, "TotalPosts") %>&nbsp;</td>
									<td class="CommonListCell"><%# ((Byte[])(DataBinder.Eval(Container.DataItem, "PostRank")))[0] %>&nbsp;</td>
									<td class="CommonListCell" runat="server" visible="<%# CanSeeUserPoints() %>"><%# DataBinder.Eval(Container.DataItem, "Points") %>&nbsp;</td>
									<td class="CommonListCell"><cs:userimagebuttons runat="server" mode="PrivateMessages" user='<%# (User) Container.DataItem %>' />&nbsp;</td>
								</tr>
						</ItemTemplate>
						<FooterTemplate>
								</tbody>
							</table>
						</FooterTemplate>
						<NoneTemplate>
								<tr>
									<td align="center" colspan="6" class="CommonListCellLeftMost"><CS:ResourceControl runat="server" ResourceName="EditProfile_FavoriteUsers_None" ID="Resourcecontrol49" NAME="Resourcecontrol49"/></td>
								</tr>
						</NoneTemplate>
					</CS:RepeaterPlusNone>
					</div>
					<div class="CommonFormField">
						<asp:Button id="DeleteFavoriteUsers" runat="server" />
					</div>
				</p>
				<p>
					<div class="CommonListArea">
					<h4 class="CommonListTitle"><cs:resourcecontrol runat="server" resourcename="EditProfile_Watchers_Title" id="Resourcecontrol54" name="Resourcecontrol44"/></h4>
					<cs:repeaterplusnone id="Watchers" runat="server">
						<headertemplate>
							<table cellpadding="0" cellspacing="0" border="0" width="100%">
								<thead>
								<tr>
									<th class="CommonListHeaderLeftMost"><cs:resourcecontrol runat="server" resourcename="EditProfile_FavoriteUsers_Username" id="Resourcecontrol55" name="Resourcecontrol45"/></th>
									<th class="CommonListHeader"><cs:resourcecontrol runat="server" resourcename="EditProfile_FavoriteUsers_TotalPosts" id="Resourcecontrol56" name="Resourcecontrol46"/></th>
									<th class="CommonListHeader"><cs:resourcecontrol runat="server" resourcename="EditProfile_FavoriteUsers_PostRank" id="Resourcecontrol57" name="Resourcecontrol47"/></th>
									<th class="CommonListHeader" runat="server" visible="<%# CanSeeUserPoints() %>"><cs:resourcecontrol runat="server" resourcename="EditProfile_FavoriteUsers_Points" id="Resourcecontrol58" name="Resourcecontrol48"/></th>
									<th class="CommonListHeader"><cs:resourcelabel runat="server" resourcename="EditProfile_FavoriteUsers_Actions" id="Resourcelabel2"/></th>
								</tr>
								</thead>
								<tbody>
						</headertemplate>
						<itemtemplate>
								<tr>
									<td class="CommonListCellLeftMost"><%# Formatter.FormatUsername((int)DataBinder.Eval(Container.DataItem, "UserID"), DataBinder.Eval(Container.DataItem, "Username").ToString(), false) %>&nbsp;</td>
									<td class="CommonListCell"><%# DataBinder.Eval(Container.DataItem, "TotalPosts") %>&nbsp;</td>
									<td class="CommonListCell"><%# ((Byte[])(DataBinder.Eval(Container.DataItem, "PostRank")))[0] %>&nbsp;</td>
									<td class="CommonListCell" runat="server" visible="<%# CanSeeUserPoints() %>"><%# DataBinder.Eval(Container.DataItem, "Points") %>&nbsp;</td>
									<td class="CommonListCell"><cs:userimagebuttons runat="server" mode="PrivateMessages" user='<%# (User) Container.DataItem %>' />&nbsp;</td>
								</tr>
						</itemtemplate>
						<footertemplate>
								</tbody>
							</table>
						</footertemplate>
						<nonetemplate>
								<tr>
									<td align="center" colspan="5" class="CommonListCellLeftMost"><cs:resourcecontrol runat="server" resourcename="EditProfile_Watchers_None" id="Resourcecontrol59" name="Resourcecontrol49"/></td>
								</tr>
						</nonetemplate>
					</cs:repeaterplusnone>
					</div>
				</p>
				<p>
					<div class="CommonListArea">
						<asp:checkbox id="ShareFavoritePosts" runat="server" />
					<h4 class="CommonListTitle"><cs:resourcecontrol runat="server" resourcename="EditProfile_FavoritePosts_Title" id="Resourcecontrol60" name="Resourcecontrol44"/></h4>
					<cs:repeaterplusnone id="FavoritePosts" runat="server">
						<headertemplate>
							<table cellpadding="0" cellspacing="0" border="0" width="100%">
								<thead>
								<tr>
									<th class="CommonListHeaderLeftMost">&nbsp;</th>
									<th class="CommonListHeader"><cs:resourcecontrol runat="server" resourcename="EditProfile_FavoritePosts_Subject" id="Resourcecontrol64" name="Resourcecontrol45"/></th>
									<th class="CommonListHeader"><cs:resourcecontrol runat="server" resourcename="EditProfile_FavoritePosts_Excerpt" id="Resourcecontrol65" name="Resourcecontrol46"/></th>
								</tr>
								</thead>
								<tbody>
						</headertemplate>
						<itemtemplate>
								<tr>
									<td class="CommonListCellLeftMost"><asp:checkbox id="Select" runat="server" /><input type="hidden" runat="server" id="ItemID" value='<%# DataBinder.Eval(Container.DataItem, "PostID") %>' name="ItemID"/></td>
									<td class="CommonListCell"><a href="<%# ApplicationSet.Applications[((Post)Container.DataItem).Section.ApplicationType].Url((Post)Container.DataItem) %>"><%# DataBinder.Eval(Container.DataItem, "Subject") %></a>&nbsp;</td>
									<td class="CommonListCell"><%# DataBinder.Eval(Container.DataItem, "ForceExcerpt") %>&nbsp;</td>
								</tr>
						</itemtemplate>
						<footertemplate>
								</tbody>
							</table>
						</footertemplate>
						<nonetemplate>
								<tr>
									<td align="center" colspan="3" class="CommonListCellLeftMost"><cs:resourcecontrol runat="server" resourcename="EditProfile_FavoritePosts_None" id="Resourcecontrol67" name="Resourcecontrol49"/></td>
								</tr>
						</nonetemplate>
					</cs:repeaterplusnone>
					</div>
					<div class="CommonFormField">
						<asp:button id="DeleteFavoritePosts" runat="server" />
					</div>
				</p>
				<p>
					<div class="CommonListArea">
						<asp:checkbox id="ShareFavoriteSections" runat="server" />
					<h4 class="CommonListTitle"><cs:resourcecontrol runat="server" resourcename="EditProfile_FavoriteSections_Title" id="Resourcecontrol61" name="Resourcecontrol44"/></h4>
					<cs:repeaterplusnone id="FavoriteSections" runat="server">
						<headertemplate>
							<table cellpadding="0" cellspacing="0" border="0" width="100%">
								<thead>
								<tr>
									<th class="CommonListHeaderLeftMost">&nbsp;</th>
									<th class="CommonListHeader"><cs:resourcecontrol runat="server" resourcename="EditProfile_FavoriteSections_Name" id="Resourcecontrol62" name="Resourcecontrol45"/></th>
									<th class="CommonListHeader"><cs:resourcecontrol runat="server" resourcename="EditProfile_FavoriteSections_Description" id="Resourcecontrol63" name="Resourcecontrol46"/></th>
								</tr>
								</thead>
								<tbody>
						</headertemplate>
						<itemtemplate>
								<tr>
									<td class="CommonListCellLeftMost"><asp:checkbox id="Select" runat="server" /><input type="hidden" runat="server" id="ItemID" value='<%# DataBinder.Eval(Container.DataItem, "SectionID") %>' name="ItemID"/></td>
									<td class="CommonListCell">
										<%# Container.DataItem.ToString().Substring(Container.DataItem.ToString().LastIndexOf(".") + 1) %>:
										<a href="<%# DataBinder.Eval(Container.DataItem, "Url") %>"><%# DataBinder.Eval(Container.DataItem, "Name") %></a>&nbsp;</td>
									<td class="CommonListCell"><%# DataBinder.Eval(Container.DataItem, "Description") %>&nbsp;</td>
								</tr>
						</itemtemplate>
						<footertemplate>
								</tbody>
							</table>
						</footertemplate>
						<nonetemplate>
								<tr>
									<td align="center" colspan="3" class="CommonListCellLeftMost"><cs:resourcecontrol runat="server" resourcename="EditProfile_FavoriteSections_None" id="Resourcecontrol66" name="Resourcecontrol49"/></td>
								</tr>
						</nonetemplate>
					</cs:repeaterplusnone>
					</div>
					<div class="CommonFormField">
						<asp:button id="DeleteFavoriteSections" runat="server" />
					</div>
				</p>
			</Content>
			</TWC:TabbedPane>
		</TWC:TabbedPanes>
		
		<div align="left">		
            <asp:Button runat="server" id="UpdateButtonBottom" />
		</div>
 		
	</div>
	<CS:AdPart runat = "Server" contentname="StandardBottom" ID="Adpart2">
	    <CS:Ads Zone="StandardBottom" runat="server" id="Ads3" />
	</CS:AdPart>

</div>

      

